package cn.clq.ssmshiro.pojo;

public class Items {
    private int id;
    private String name;
    private String city;
    private double price;
    private int number;
    private String picture;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"id\":")
                .append(id);
        sb.append(",\"name\":\"")
                .append(name).append('\"');
        sb.append(",\"city\":\"")
                .append(city).append('\"');
        sb.append(",\"price\":")
                .append(price);
        sb.append(",\"number\":")
                .append(number);
        sb.append(",\"picture\":\"")
                .append(picture).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
